import type { ReactNode } from "react";

export const conditionRender = (condition: boolean, success: ReactNode, fail: ReactNode = null) => {
    return condition ? success: fail;
};